package com.loveprogrammer.dto.job;

import com.loveprogrammer.dto.base.RequestBase;
import com.loveprogrammer.pojo.StringMessage;
import lombok.Data;

import java.util.List;


public class JobChoose extends RequestBase {

    /***
     * 可选职业列表
     */
    private List<JobItem> jobList;

    /***
     * 已创建的英雄列表 - 暂为空
     */
    private List<Object> heroList;

    public JobChoose(StringMessage message) {
        super(message);
    }

    public JobChoose(int successCallbackTopic, int successCallbackTag, int errorCallbackTopic, int errorCallbackTag, List<JobItem> jobList, List<Object> heroList) {
        super(successCallbackTopic, successCallbackTag, errorCallbackTopic, errorCallbackTag);
        this.jobList = jobList;
        this.heroList = heroList;
    }

    @Data
    public static class JobItem {
        private int id;

        private String name;

        private String desc;

        private int strength;                  // 力量 影响物理输出 物理技能输出
        private int armature;                 // 护甲值 影响物理防御和法术防御
        private int constitution;               // 体质 影响生命值 一点体质增加10点生命值
        private int magic;                       // 魔力 影响法术输出 法术技能输出
        private int technique;                   // 技巧 影响闪避率、暴击率
        private int speed;                         // 攻击速度
    }

    public List<JobItem> getJobList() {
        return jobList;
    }

    public void setJobList(List<JobItem> jobList) {
        this.jobList = jobList;
    }

    public List<Object> getHeroList() {
        return heroList;
    }

    public void setHeroList(List<Object> heroList) {
        this.heroList = heroList;
    }
}
